Problem 1 |
Create a program call FindReplace to find the word Hello and replace it with the word Hola. Cree un programa llamadao FindReplace para encontrar la palabra Hello y reemplazarla con la palabra Hola. |
FindReplace.cpp |
void FindReplace::Window_Open(Win::Event& e) { this->tbxInput.Text = L"hello world is the a hello program"; } void FindReplace::btReplace_Click(Win::Event& e) { //wregex reg(L"hello"); wregex reg(L"hello"); wstring replacement(L"hola"); //tbxOutput.Text =regex_replace(tbxInput.Text, reg, replacement); tbxOutput.Text = regex_replace(tbxInput.Text, reg, replacement); } |